<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>~중복확인~</title>
</head>
<body>
</body>
</html>
<?php
	require_once('db_connect.php');

	$id=$_GET['id'];
	
	if(!$id)
	{
		echo ("아이디를 입력하세요 ");
	}	
	else
	{	
	
	$sql = "select * from member where id='$id'";
	$result = mysqli_query($conn, $sql);
	
	$row_num = mysqli_num_rows($result);
	
		if($row_num > 0)
		{
			echo "중복된 아이디입니다 ";
		}
		else
		{
			echo "사용 가능한 아이디 입니다 ";
		}		
	
	}
	echo "<input type=button value=창닫기 onclick=window.close(true)>";
	
?>	
	